﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FJERP.Model;
using FJERP.BLL;


namespace FJERP
{
    public partial class WareHoseAdd : System.Web.UI.Page
    {
        WareHoseBLL bll = new WareHoseBLL();

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            WareHose w = new WareHose();
            w.WareHose_Name = this.WareHose_Name.Text;
            w.WareHose_People = this.WareHose_People.Text;
            w.WareHose_Phone = this.WareHose_Phone.Text;
            w.WareHose_Address = this.WareHose_Address.Text;
            w.WareHose_Remark = this.WareHose_Remark.Text;
            if (bll.AddWareHose(w) > 0)
            {
                Response.Write("<script>alert('添加成功');location.href='WareHose_Show.aspx';</script>");

            }
            else
            {
                Response.Write("<script>alert('添加失败')</script>");
            }
        }
    }
}